package com.kun.transform;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 返回前端数据表格数据
 * @author kun.li
 */
@Data
public class TableData implements Serializable {
    /**
     * 当前页
     */
    private Long current;
    /**
     * 总页数
     */
    private Long pages;
    /**
     *  总记录数
     */
    private Long total;
    /**
     *  数据
     */
    private List<?> records;

    public TableData() {
    }

    public TableData(List<?> records) {
        this.records = records;
    }

    public TableData(Long current, Long pages, Long total, List<?> records) {
        this.current = current;
        this.pages = pages;
        this.total = total;
        this.records = records;
    }
}
